#include "backend.h"
#include "backend/easylogger.h"
#include "backend/checkermanager.h"
#include "backend/connectmanager.h"
#include "backend/processmanager.h"

#define _FROM 1
#define _TO 10


BackEnd::BackEnd(QObject *parent) :
    QObject(parent)
{

 //   CheckerManager*  _CheckerManager = new CheckerManager;
    ConnectManager* _ConnectManager = new ConnectManager;
 //   EasyLogger* _EasyLogger = new EasyLogger;
  //  ProcessManager* _ProcessManager = new ProcessManager;



    //   connect(_CheckerManager, &CheckerManager::kontrollerStatusInfo, _ConnectManager,&ConnectManager::dataReceiverSlot);
    //  connect(_ConnectManager,&ConnectManager::hostStatusInfo, _ConnectManager,&ConnectManager::dataReceiverSlot);
    // _CheckerManager->checkKontroller(_FROM,_TO);
    //    _ConnectManager->aboutHost();
  //  int c = 0;
   /* QTimer* timer = new QTimer;
    connect(timer, &QTimer::timeout,
            [=,&c]()
    {
        _ConnectManager->dataReceiverSlot((QString::number(c)+" ").toUtf8());
        c++;
    });
    timer->start(1000);*/



    //conection logger...
//    connect(_CheckerManager, &CheckerManager::myError,_EasyLogger, &EasyLogger::entrPoint);
//    connect(_ConnectManager, &ConnectManager::myError,_EasyLogger, &EasyLogger::entrPoint);
  //  connect(_ProcessManager, &ProcessManager::myError,_EasyLogger, &EasyLogger::entrPoint);


}

